from flask import Blueprint

api_blueprint = Blueprint('api', __name__, url_prefix='/api')
auth_blueprint = Blueprint('auth', __name__, url_prefix='/auth')
personal_blueprint = Blueprint('personal', __name__, url_prefix='/personal')
post_blueprint= Blueprint('post', __name__, url_prefix='/post')

#TODO route
from .auth import *
from .personal import *
from .personal.api.identity import *
from .personal.api.information import *
from .post.api.blog import *
from .post import *


def blueprint_register(app):
    app.register_blueprint(api_blueprint)
    app.register_blueprint(auth_blueprint)
    app.register_blueprint(personal_blueprint)
    app.register_blueprint(post_blueprint)

